﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UpdateImg.aspx.cs" Inherits="admin_UpdateImg" MasterPageFile="~/admin/AdminMasterPage.master" %>

<asp:Content ID="header" ContentPlaceHolderID="head" runat="server">
    <link href="../css/uploadify.css" rel="stylesheet" />

</asp:Content>
<asp:Content ID="main" ContentPlaceHolderID="main" runat="server">
    <div class="panel panel-default">
        <div class="panel-body">
            <blockquote>
                <h3>相册管理</h3>
            </blockquote>
            <hr />
            <div id="fileQueue"></div>
            <input type="file" name="uploadify" id="file_upload_1" />
            <p>
                <a href="javascript:$('#file_upload_1').uploadify('upload')">上传</a>| 
                <a href="javascript:$('#file_upload_1').uploadify('cancel')">取消上传</a>
            </p>
             <hr />
        </div>
    </div>
</asp:Content>
<asp:Content ID="js" ContentPlaceHolderID="footJS" runat="server">
    <script src="../js/jquery.uploadify.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#file_upload_1").uploadify({
                height: 30,
                swf: '../js/uploadify.swf',
                uploader: 'ajax/UploadHandler.ashx?id=0',
                buttonText: '请选择上传图片',
                fileTypeDesc: '图片文件',
                fileSizeLimit: '15MB',
                fileTypeExts: '*.gif; *.jpg; *.png',
                onUploadSuccess: function (file, data, response) {
                    $('#' + file.id).find('.data').html('上传完毕');
                },
                width: 120,
                //选择文件后自动上传
                auto: true,
                //设置为true将允许多文件上传
                multi: true
            });
            $(".navbar-collapse").find("li").eq(5).addClass("active").siblings().removeClass("active");
        });
    </script>
</asp:Content>
